﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Applay
{
    public interface IValidationState
    {
        /// <summary>
        /// Adds an error.
        /// </summary>
        /// <param name="message">The error message.</param>
        /// <param name="keys">The keys.</param>
        void AddError(string message, params string[] keys);

        /// <summary>
        /// Gets a value indicating whether the validation scope is valid.
        /// </summary>
        /// <value>
        ///   <c>true</c> if the validation scope is valid; otherwise, <c>false</c>.
        /// </value>
        bool IsValid { get; }
    }
}
